package com.sasis.model;
// Generated 2007-7-31 10:43:59 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_SERVICE_FOOD"
 *     
 */

public class VipServiceFood extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer vipServiceSheetId;
    private Integer provideFoodType;
    private Integer provideFoodSum;
    private Integer provideFoodOtherSum;
    private String provideFoodRemark;
    private Integer provideFoodOperator;
    private Timestamp provideFoodOperateDate;


    // Constructors

    /** default constructor */
    public VipServiceFood() {
    }

    
    /** full constructor */
    public VipServiceFood(Integer vipServiceSheetId, Integer provideFoodType, Integer provideFoodSum, Integer provideFoodOtherSum, String provideFoodRemark, Integer provideFoodOperator, Timestamp provideFoodOperateDate) {
        this.vipServiceSheetId = vipServiceSheetId;
        this.provideFoodType = provideFoodType;
        this.provideFoodSum = provideFoodSum;
        this.provideFoodOtherSum = provideFoodOtherSum;
        this.provideFoodRemark = provideFoodRemark;
        this.provideFoodOperator = provideFoodOperator;
        this.provideFoodOperateDate = provideFoodOperateDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="VIP_SERVICE_SHEET_ID"
     *             length="22"
     *         
     */

    public Integer getVipServiceSheetId() {
        return this.vipServiceSheetId;
    }
    
    public void setVipServiceSheetId(Integer vipServiceSheetId) {
        this.vipServiceSheetId = vipServiceSheetId;
    }
    /**       
     *      *            @hibernate.property
     *             column="PROVIDE_FOOD_TYPE"
     *             length="22"
     *         
     */

    public Integer getProvideFoodType() {
        return this.provideFoodType;
    }
    
    public void setProvideFoodType(Integer provideFoodType) {
        this.provideFoodType = provideFoodType;
    }
    /**       
     *      *            @hibernate.property
     *             column="PROVIDE_FOOD_SUM"
     *             length="22"
     *         
     */

    public Integer getProvideFoodSum() {
        return this.provideFoodSum;
    }
    
    public void setProvideFoodSum(Integer provideFoodSum) {
        this.provideFoodSum = provideFoodSum;
    }
    /**       
     *      *            @hibernate.property
     *             column="PROVIDE_FOOD_OTHER_SUM"
     *             length="22"
     *         
     */

    public Integer getProvideFoodOtherSum() {
        return this.provideFoodOtherSum;
    }
    
    public void setProvideFoodOtherSum(Integer provideFoodOtherSum) {
        this.provideFoodOtherSum = provideFoodOtherSum;
    }
    /**       
     *      *            @hibernate.property
     *             column="PROVIDE_FOOD_REMARK"
     *             length="1024"
     *         
     */

    public String getProvideFoodRemark() {
        return this.provideFoodRemark;
    }
    
    public void setProvideFoodRemark(String provideFoodRemark) {
        this.provideFoodRemark = provideFoodRemark;
    }
    /**       
     *      *            @hibernate.property
     *             column="PROVIDE_FOOD_OPERATOR"
     *             length="22"
     *         
     */

    public Integer getProvideFoodOperator() {
        return this.provideFoodOperator;
    }
    
    public void setProvideFoodOperator(Integer provideFoodOperator) {
        this.provideFoodOperator = provideFoodOperator;
    }
    /**       
     *      *            @hibernate.property
     *             column="PROVIDE_FOOD_OPERATE_DATE"
     *             length="7"
     *         
     */

    public Timestamp getProvideFoodOperateDate() {
        return this.provideFoodOperateDate;
    }
    
    public void setProvideFoodOperateDate(Timestamp provideFoodOperateDate) {
        this.provideFoodOperateDate = provideFoodOperateDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("vipServiceSheetId").append("='").append(getVipServiceSheetId()).append("' ");			
      buffer.append("provideFoodType").append("='").append(getProvideFoodType()).append("' ");			
      buffer.append("provideFoodSum").append("='").append(getProvideFoodSum()).append("' ");			
      buffer.append("provideFoodOtherSum").append("='").append(getProvideFoodOtherSum()).append("' ");			
      buffer.append("provideFoodRemark").append("='").append(getProvideFoodRemark()).append("' ");			
      buffer.append("provideFoodOperator").append("='").append(getProvideFoodOperator()).append("' ");			
      buffer.append("provideFoodOperateDate").append("='").append(getProvideFoodOperateDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipServiceFood) ) return false;
		 VipServiceFood castOther = ( VipServiceFood ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getVipServiceSheetId()==castOther.getVipServiceSheetId()) || ( this.getVipServiceSheetId()!=null && castOther.getVipServiceSheetId()!=null && this.getVipServiceSheetId().equals(castOther.getVipServiceSheetId()) ) )
 && ( (this.getProvideFoodType()==castOther.getProvideFoodType()) || ( this.getProvideFoodType()!=null && castOther.getProvideFoodType()!=null && this.getProvideFoodType().equals(castOther.getProvideFoodType()) ) )
 && ( (this.getProvideFoodSum()==castOther.getProvideFoodSum()) || ( this.getProvideFoodSum()!=null && castOther.getProvideFoodSum()!=null && this.getProvideFoodSum().equals(castOther.getProvideFoodSum()) ) )
 && ( (this.getProvideFoodOtherSum()==castOther.getProvideFoodOtherSum()) || ( this.getProvideFoodOtherSum()!=null && castOther.getProvideFoodOtherSum()!=null && this.getProvideFoodOtherSum().equals(castOther.getProvideFoodOtherSum()) ) )
 && ( (this.getProvideFoodRemark()==castOther.getProvideFoodRemark()) || ( this.getProvideFoodRemark()!=null && castOther.getProvideFoodRemark()!=null && this.getProvideFoodRemark().equals(castOther.getProvideFoodRemark()) ) )
 && ( (this.getProvideFoodOperator()==castOther.getProvideFoodOperator()) || ( this.getProvideFoodOperator()!=null && castOther.getProvideFoodOperator()!=null && this.getProvideFoodOperator().equals(castOther.getProvideFoodOperator()) ) )
 && ( (this.getProvideFoodOperateDate()==castOther.getProvideFoodOperateDate()) || ( this.getProvideFoodOperateDate()!=null && castOther.getProvideFoodOperateDate()!=null && this.getProvideFoodOperateDate().equals(castOther.getProvideFoodOperateDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getVipServiceSheetId() == null ? 0 : this.getVipServiceSheetId().hashCode() );
         result = 37 * result + ( getProvideFoodType() == null ? 0 : this.getProvideFoodType().hashCode() );
         result = 37 * result + ( getProvideFoodSum() == null ? 0 : this.getProvideFoodSum().hashCode() );
         result = 37 * result + ( getProvideFoodOtherSum() == null ? 0 : this.getProvideFoodOtherSum().hashCode() );
         result = 37 * result + ( getProvideFoodRemark() == null ? 0 : this.getProvideFoodRemark().hashCode() );
         result = 37 * result + ( getProvideFoodOperator() == null ? 0 : this.getProvideFoodOperator().hashCode() );
         result = 37 * result + ( getProvideFoodOperateDate() == null ? 0 : this.getProvideFoodOperateDate().hashCode() );
         return result;
   }   





}
